package digital.store.tutorial.springmvc.model;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

public class ShoppingCart {
	
	private float total;
	
	private Map<Long , Product> products = new HashMap<Long, Product>();

	

	public float getTotal() {
		return total;
	}

	public void setTotal(float total) {
		this.total = total;
	}



	public Map<Long, Product> getProducts() {
		return products;
	}



	public void setProducts(Map<Long, Product> products) {
		this.products = products;
	}



	public void setProduct(Product product){
		this.products.put(product.getId(),product);
	}
	
}
